<?php

/**
 * Class Weixin_Admin_module
 */
class Weixin_Api_module extends CI_Module
{
    public $weixin_model;
    public $setting;

    public function __construct()
    {
        parent::__construct();
        $this->load->model('weixin.weixin_model');
        $this->setting = $this->weixin_model->db_get_setting();
        define('TOKEN',     @$this->setting['token']);
        define('APPID',     @$this->setting['appid']);
        define('APPSECRET', @$this->setting['appsecret']);
        $this->weixin_model->valid();


    }


    public function index()
    {
    
        $this->weixin_model->responseMsg();
    }
    
}